package com.yingda.electronicscaleadvices.bean;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * author: qzx
 * Date: 2019/6/3 16:48
 */
@NoArgsConstructor
@Data
public class UpdateAppBean {


    @JsonProperty("version")
    private String version;
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("message")
    private String message;
    @JsonProperty("data")
    private DataDTO data;
    @JsonProperty("timestamp")
    private String timestamp;

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        @JsonProperty("id")
        private Integer id;
        @JsonProperty("canteenId")
        private Integer canteenId;
        @JsonProperty("type")
        private Integer type;
        @JsonProperty("versionCode")
        private Integer versionCode;
        @JsonProperty("versionName")
        private String versionName;
        @JsonProperty("apkUrl")
        private String apkUrl;
        @JsonProperty("isForce")
        private Integer isForce;
        @JsonProperty("message")
        private String message;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public Integer getCanteenId() {
            return canteenId;
        }

        public void setCanteenId(Integer canteenId) {
            this.canteenId = canteenId;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public Integer getVersionCode() {
            return versionCode;
        }

        public void setVersionCode(Integer versionCode) {
            this.versionCode = versionCode;
        }

        public String getVersionName() {
            return versionName;
        }

        public void setVersionName(String versionName) {
            this.versionName = versionName;
        }

        public String getApkUrl() {
            return apkUrl;
        }

        public void setApkUrl(String apkUrl) {
            this.apkUrl = apkUrl;
        }

        public Integer getIsForce() {
            return isForce;
        }

        public void setIsForce(Integer isForce) {
            this.isForce = isForce;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }


    }

    @Override
    public String toString() {
        return "UpdateAppBean{" +
                "version='" + version + '\'' +
                ", code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                ", timestamp='" + timestamp + '\'' +
                '}';
    }
}
